home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 2: CDPD 1
/
Almathera Ten on Ten - Disc 2: CDPD 1.iso
/
pd
/
276-300
/
285
/
liner
/
source
/
windows.h
< prev
Wrap
C/C++ Source or Header
|
1995-03-14
|
14KB
|
742 lines
USHORT *ImageData1Chip,*ImageData2Chip;
struct NewScreen NewScreen = {
0,0,
640,200,
2,
0,1,
HIRES,
CUSTOMSCREEN,
NULL,
NULL,
NULL,
NULL
};
struct IntuiText IText1 = {
3,1,COMPLEMENT,
19,0,
NULL,
"a)",
NULL
};
struct MenuItem SubItem6 = {
NULL,
128,40,
35,8,
CHECKIT+ITEMTEXT+MENUTOGGLE+ITEMENABLED+HIGHCOMP,
0x1f,
(APTR)&IText1,
NULL,
NULL,
NULL,
MENUNULL
};
struct IntuiText IText2 = {
3,1,COMPLEMENT,
19,0,
NULL,
"1)",
NULL
};
struct MenuItem SubItem5 = {
&SubItem6,
128,32,
35,8,
CHECKIT+ITEMTEXT+MENUTOGGLE+ITEMENABLED+HIGHCOMP,
0x2f,
(APTR)&IText2,
NULL,
NULL,
NULL,
MENUNULL
};
struct IntuiText IText3 = {
3,1,COMPLEMENT,
19,0,
NULL,
"a.",
NULL
};
struct MenuItem SubItem4 = {
&SubItem5,
128,24,
35,8,
CHECKIT+ITEMTEXT+MENUTOGGLE+ITEMENABLED+HIGHCOMP,
0x37,
(APTR)&IText3,
NULL,
NULL,
NULL,
MENUNULL
};
struct IntuiText IText4 = {
3,1,COMPLEMENT,
19,0,
NULL,
"1.",
NULL
};
struct MenuItem SubItem3 = {
&SubItem4,
128,16,
35,8,
CHECKIT+ITEMTEXT+MENUTOGGLE+ITEMENABLED+HIGHCOMP,
0x3b,
(APTR)&IText4,
NULL,
NULL,
NULL,
MENUNULL
};
struct IntuiText IText5 = {
3,1,COMPLEMENT,
19,0,
NULL,
"A.",
NULL
};
struct MenuItem SubItem2 = {
&SubItem3,
128,8,
35,8,
CHECKIT+ITEMTEXT+MENUTOGGLE+ITEMENABLED+HIGHCOMP,
0x3d,
(APTR)&IText5,
NULL,
NULL,
NULL,
MENUNULL
};
struct IntuiText IText6 = {
3,1,COMPLEMENT,
19,0,
NULL,
"I.",
NULL
};
struct MenuItem SubItem1 = {
&SubItem2,
128,0,
35,8,
CHECKIT+ITEMTEXT+MENUTOGGLE+ITEMENABLED+HIGHCOMP+CHECKED,
0x3e,
(APTR)&IText6,
NULL,
NULL,
NULL,
MENUNULL
};
struct IntuiText IText7 = {
3,1,COMPLEMENT,
0,0,
NULL,
"Starting Level",
NULL
};
struct MenuItem *SubItems[6]=
{
{&SubItem1},
{&SubItem2},
{&SubItem3},
{&SubItem4},
{&SubItem5},
{&SubItem6}
};
struct MenuItem MenuItem3 = {
NULL,
0,18,
171,8,
CHECKIT+ITEMTEXT+MENUTOGGLE+ITEMENABLED+HIGHCOMP,
0,
(APTR)&IText7,
NULL,
NULL,
&SubItem1,
MENUNULL
};
struct IntuiText IText8 = {
3,1,COMPLEMENT,
19,0,
NULL,
"Interlaced",
NULL
};
struct MenuItem MenuItem2 = {
&MenuItem3,
0,9,
171,8,
CHECKIT+ITEMTEXT+COMMSEQ+MENUTOGGLE+ITEMENABLED+HIGHCOMP,
0,
(APTR)&IText8,
NULL,
'I',
NULL,
MENUNULL
};
struct IntuiText IText9 = {
3,1,COMPLEMENT,
19,0,
NULL,
"Double Spacing",
NULL
};
struct MenuItem MenuItem1 = {
&MenuItem2,
0,0,
171,8,
CHECKIT+ITEMTEXT+COMMSEQ+MENUTOGGLE+ITEMENABLED+HIGHCOMP,
0,
(APTR)&IText9,
NULL,
'D',
NULL,
MENUNULL
};
struct Menu Menu3 = {
NULL,
137,0,
57,0,
MENUENABLED,
"Prefs",
&MenuItem1
};
struct IntuiText IText10 = {
3,1,COMPLEMENT,
0,0,
NULL,
"Erase",
NULL
};
struct MenuItem MenuItem7 = {
NULL,
0,27,
80,8,
ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,
0,
(APTR)&IText10,
NULL,
'E',
NULL,
MENUNULL
};
struct IntuiText IText11 = {
3,1,COMPLEMENT,
0,0,
NULL,
"Paste",
NULL
};
struct MenuItem MenuItem6 = {
&MenuItem7,
0,18,
80,8,
ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,
0,
(APTR)&IText11,
NULL,
'P',
NULL,
MENUNULL
};
struct IntuiText IText12 = {
3,1,COMPLEMENT,
0,0,
NULL,
"Copy",
NULL
};
struct MenuItem MenuItem5 = {
&MenuItem6,
0,9,
80,8,
ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,
0,
(APTR)&IText12,
NULL,
'C',
NULL,
MENUNULL
};
struct IntuiText IText13 = {
3,1,COMPLEMENT,
0,0,
NULL,
"Cut",
NULL
};
struct MenuItem MenuItem4 = {
&MenuItem5,
0,0,
80,8,
ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,
0,
(APTR)&IText13,
NULL,
'X',
NULL,
MENUNULL
};
struct Menu Menu2 = {
&Menu3,
82,0,
48,0,
MENUENABLED,
"Edit",
&MenuItem4
};
struct IntuiText IText14 = {
3,1,COMPLEMENT,
0,0,
NULL,
"Quit",
NULL
};
struct MenuItem MenuItem14 = {
NULL,
0,54,
120,8,
ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,
0,
(APTR)&IText14,
NULL,
'Q',
NULL,
MENUNULL
};
struct IntuiText IText15 = {
3,1,COMPLEMENT,
0,0,
NULL,
"About...",
NULL
};
struct MenuItem MenuItem13 = {
&MenuItem14,
0,45,
120,8,
ITEMTEXT+ITEMENABLED+HIGHCOMP,
0,
(APTR)&IText15,
NULL,
NULL,
NULL,
MENUNULL
};
struct IntuiText IText16 = {
3,1,COMPLEMENT,
0,0,
NULL,
"To printer",
NULL
};
struct MenuItem SubItem8 = {
NULL,
105,8,
80,8,
ITEMTEXT+ITEMENABLED+HIGHCOMP,
0,
(APTR)&IText16,
NULL,
NULL,
NULL,
MENUNULL
};
struct IntuiText IText17 = {
3,1,COMPLEMENT,
0,0,
NULL,
"To disk",
NULL
};
struct MenuItem SubItem7 = {
&SubItem8,
105,0,
80,8,
ITEMTEXT+ITEMENABLED+HIGHCOMP,
0,
(APTR)&IText17,
NULL,
NULL,
NULL,
MENUNULL
};
struct IntuiText IText18 = {
3,1,COMPLEMENT,
0,0,
NULL,
"Print",
NULL
};
struct MenuItem MenuItem12 = {
&MenuItem13,
0,36,
120,8,
ITEMTEXT+ITEMENABLED+HIGHCOMP,
0,
(APTR)&IText18,
NULL,
NULL,
&SubItem7,
MENUNULL
};
struct IntuiText IText19 = {
3,1,COMPLEMENT,
0,0,
NULL,
"Save As...",
NULL
};
struct MenuItem MenuItem11 = {
&MenuItem12,
0,27,
120,8,
ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,
0,
(APTR)&IText19,
NULL,
'A',
NULL,
MENUNULL
};
struct IntuiText IText20 = {
3,1,COMPLEMENT,
0,0,
NULL,
"Save",
NULL
};
struct MenuItem MenuItem10 = {
&MenuItem11,
0,18,
120,8,
ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,
0,
(APTR)&IText20,
NULL,
'S',
NULL,
MENUNULL
};
struct IntuiText IText21 = {
3,1,COMPLEMENT,
0,0,
NULL,
"Open",
NULL
};
struct MenuItem MenuItem9 = {
&MenuItem10,
0,9,
120,8,
ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,
0,
(APTR)&IText21,
NULL,
'O',
NULL,
MENUNULL
};
struct IntuiText IText22 = {
3,1,COMPLEMENT,
0,0,
NULL,
"New",
NULL
};
struct MenuItem MenuItem8 = {
&MenuItem9,
0,0,
120,8,
ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP,
0,
(APTR)&IText22,
NULL,
'N',
NULL,
MENUNULL
};
struct Menu Menu1 = {
&Menu2,
0,0,
75,0,
MENUENABLED,
"Project",
&MenuItem8
};
#define MenuList1 Menu1
struct NewWindow NewWindow = {
0,11,
640,189,
0,1,
MOUSEBUTTONS+MOUSEMOVE+MENUPICK+RAWKEY,
BACKDROP+REPORTMOUSE+BORDERLESS+ACTIVATE,
NULL,
NULL,
NULL,
NULL,
NULL,
640,189,
640,189,
CUSTOMSCREEN
};
USHORT ImageData1[] = {
0x003F,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFE00,0x0000,0x03E0,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x03E0,0x0000,0x0E1F,0xFFFF,0xFFFF,0xFFFF,
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
0xFC38,0x0000,0x38F0,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x078E,0x0000,
0x6300,0x0000,0x0000,0x00F8,0x0000,0x0080,0x6000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0063,0x0000,0xC600,0x0000,
0x0000,0x018C,0x0000,0x0180,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0031,0x8000,0x8C00,0x0000,0x0000,0x0300,
0x3E1F,0x83E0,0xE07E,0x3183,0xE000,0x0000,0x0000,0x0000,
0x0018,0x8000,0x8800,0x0000,0x0000,0x0300,0x6318,0xC180,
0x6063,0x3186,0x3000,0x0000,0x0000,0x0000,0x0008,0x8000,
0x8C00,0x0000,0x0000,0x0300,0x6318,0xC180,0x6063,0x3187,
0xF000,0x0000,0x0000,0x0000,0x0018,0x8000,0xC600,0x0000,
0x0000,0x018C,0x6318,0xC190,0x6063,0x3186,0x0060,0x1806,
0x0000,0x0000,0x0031,0x8000,0x6300,0x0000,0x0000,0x00F8,
0x3E18,0xC0E0,0xF063,0x1EC3,0xE060,0x1806,0x0000,0x0000,
0x0063,0x0000,0x38F0,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x078E,0x0000,
0x0E1F,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFC38,0x0000,0x03E0,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x03E0,0x0000,0x003F,0xFFFF,0xFFFF,0xFFFF,
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
0xFE00,0x0000
};
struct Image Image1 = {
0,0,
209,15,
2,
NULL,
0x0001,0x0000,
NULL
};
USHORT ImageData2[] = {
0x003F,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFE00,0x0000,0x03E0,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x03E0,0x0000,0x0E1F,0xFFFF,0xFFFF,0xFFFF,
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
0xFC38,0x0000,0x38FF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFF8E,0x0000,
0x63FF,0xFFFF,0xFFFF,0xFF07,0xFFFF,0xFF7F,0x9FFF,0xFFFF,
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFE3,0x0000,0xC7FF,0xFFFF,
0xFFFF,0xFE73,0xFFFF,0xFE7F,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
0xFFFF,0xFFFF,0xFFF1,0x8000,0x8FFF,0xFFFF,0xFFFF,0xFCFF,
0xC1E0,0x7C1F,0x1F81,0xCE7C,0x1FFF,0xFFFF,0xFFFF,0xFFFF,
0xFFF8,0x8000,0x8FFF,0xFFFF,0xFFFF,0xFCFF,0x9CE7,0x3E7F,
0x9F9C,0xCE79,0xCFFF,0xFFFF,0xFFFF,0xFFFF,0xFFF8,0x8000,
0x8FFF,0xFFFF,0xFFFF,0xFCFF,0x9CE7,0x3E7F,0x9F9C,0xCE78,
0x0FFF,0xFFFF,0xFFFF,0xFFFF,0xFFF8,0x8000,0xC7FF,0xFFFF,
0xFFFF,0xFE73,0x9CE7,0x3E6F,0x9F9C,0xCE79,0xFF9F,0xE7F9,
0xFFFF,0xFFFF,0xFFF1,0x8000,0x63FF,0xFFFF,0xFFFF,0xFF07,
0xC1E7,0x3F1F,0x0F9C,0xE13C,0x1F9F,0xE7F9,0xFFFF,0xFFFF,
0xFFE3,0x0000,0x38FF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFF8E,0x0000,
0x0E1F,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFC38,0x0000,0x03E0,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x03E0,0x0000,0x003F,0xFFFF,0xFFFF,0xFFFF,
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
0xFE00,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x000F,0xFFFF,0xFFFF,0xFFFF,
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
0xF800,0x0000,0x00FF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFF80,0x0000,
0x01FF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFC0,0x0000,0x03FF,0xFFFF,
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
0xFFFF,0xFFFF,0xFFE0,0x0000,0x07FF,0xFFFF,0xFFFF,0xFFFF,
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
0xFFF0,0x0000,0x03FF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFE0,0x0000,
0x01FF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFC0,0x0000,0x00FF,0xFFFF,
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
0xFFFF,0xFFFF,0xFF80,0x0000,0x000F,0xFFFF,0xFFFF,0xFFFF,
0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
0xF800,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000
};
struct Image Image2 = {
0,0,
209,15,
2,
NULL,
0x0003,0x0000,
NULL
};
struct Gadget Gadget5 = {
NULL,
39,55,
209,15,
GADGHIMAGE+GADGIMAGE,
RELVERIFY,
BOOLGADGET,
(APTR)&Image1,
(APTR)&Image2,
NULL,
NULL,
NULL,
NULL,
NULL
};
#define GadgetList2 Gadget5
struct IntuiText IText27 = {
1,0,JAM2,
13,42,
NULL,
"YAFR V1.10 ©1989 David Schreiber",
NULL
};
struct IntuiText IText26 = {
1,0,JAM2,
14,22,
NULL,
"Finished on October 30, 1989",
&IText27
};
struct IntuiText IText25 = {
1,0,JAM2,
13,31,
NULL,
"©1988, 1989 David Schreiber",
&IText26
};
struct IntuiText IText24 = {
1,0,JAM2,
14,13,
NULL,
"Written by David Schreiber",
&IText25
};
struct IntuiText IText23 = {
1,0,JAM2,
12,4,
NULL,
"'Liner version 1.32",
&IText24
};
#define IntuiTextList2 IText23
struct NewWindow NewAboutWindow = {
167,46,
287,73,
0,1,
GADGETUP,
SIMPLE_REFRESH+ACTIVATE,
&Gadget5,
NULL,
NULL,
NULL,
NULL,
5,5,
640,200,
CUSTOMSCREEN
};
void HandleEvent(object)
APTR object;
{
if (object == (APTR)&MenuItem8) { HandleNew(object); return; }
if (object == (APTR)&MenuItem9) { HandleOpen(object); return; }
if (object == (APTR)&MenuItem10) { Save(object); return; }
if (object == (APTR)&MenuItem11) { HandleSaveAs(object); return; }
if (object == (APTR)&SubItem7) { HandlePrintDisk(object); return; }
if (object == (APTR)&SubItem8) { HandlePrintPrinter(object); return; }
if (object == (APTR)&MenuItem13) { HandleAbout(object); return; }
if (object == (APTR)&MenuItem14) { HandleQuit(object); return; }
if (object == (APTR)&MenuItem4) { HandleCut(object); return; }
if (object == (APTR)&MenuItem5) { HandleCopy(object); return; }
if (object == (APTR)&MenuItem6) { HandlePaste(object); return; }
if (object == (APTR)&MenuItem7) { HandleErase(object); return; }
if (object == (APTR)&MenuItem1) { DoubleSpacing(object); return; }
if (object == (APTR)&MenuItem2) { HandleInterlaced(object); return; }
if (object == (APTR)&SubItem1) { HandleFirst(object); return; }
if (object == (APTR)&SubItem2) { HandleSecond(object); return; }
if (object == (APTR)&SubItem3) { HandleThird(object); return; }
if (object == (APTR)&SubItem4) { HandleFourth(object); return; }
if (object == (APTR)&SubItem5) { HandleFifth(object); return; }
if (object == (APTR)&SubItem6) { HandleSixth(object); return; }
}
#define HANDLEEVENT HandleEvent
/* end of PowerWindows source generation */